package com.holly.common_view;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * 2016/10/24 <br/>
 *
 * @author Joey Huang QQ:273179370）
 */

public class ToViewUtils {
    public static View toView(ViewGroup parent, int layoutRes) {
        return LayoutInflater.from(parent.getContext()).inflate(layoutRes, parent, false);
    }

    public static View toView(LayoutInflater inflater, ViewGroup container, int layoutRes) {
        return inflater.inflate(layoutRes, container, false);
    }
}
